#pragma once
#ifndef PDF_PAGE_REGION_HPP
#define PDF_PAGE_REGION_HPP

namespace Pdf
{
	class PageRegion
	{
	public:
		static size_t const	pageSize;

	public:
							PageRegion(size_t byteCount);
						   ~PageRegion();

		char *				acquirePage(size_t pageIndex);
		void				releasePage(size_t pageIndex);

		size_t				getPageCount() const;
		char *				getPage(size_t pageIndex) const;
		size_t				getPageIndex(char * page) const;

	private:
		char *				base;
		size_t				pageCount;
	};
}

#endif // PDF_PAGE_REGION_HPP
